import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/es/locale/lang/zh-cn'
import * as echarts from 'echarts';
import { Carousel } from 'ant-design-vue';


//注册组件
// vue3里没有Vue
// vue2是这么写的
// import Vue from 'vue'
// vue3是这么写的
// import {createApp} from 'vue'
// Vue.prototype.$echarts = echarts


const app = createApp(App)
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
import '@/assets/css/global.css'


createApp(App).use(store).use(router).use(ElementPlus, {locale}).mount('#app')
